import React from "react";

// 表格组件
// 文档地址: https://mengshukeji.github.io/LuckysheetDocs/zh/
class Luckysheet extends React.Component {
  componentDidMount() {
    const luckysheet = window.luckysheet;
    luckysheet.create({
      container: "luckysheet",
      plugins: ["chart"],
    });
  }
  render() {
    const luckyCss = {
      height: "100%",
    };
    return <div id="luckysheet" style={luckyCss}></div>;
  }
}

export default Luckysheet;
